<% layout('/layouts/default.html', {title: '项目信息管理', libs: ['validate']}){ %>
<!--startprint-->
<head>
    <style type="text/css">
        html {
            width: 100%;
            height: 100%;
        }

        ul, li, i, b, strong {
            margin: 0px;
            padding: 0px;
            font-weight: normal;
            font-style: none;
            font-style: normal;
            list-style-type: none;
        }

        a {
            text-decoration: none;
        }

        * {
            text-decoration: none;
            margin: 0;
            padding: 0;
            list-style: none;
        }

        h3 {
            width: 100%;
            float: left;
            height: 40px;
            line-height: 40px;
            font-size: 32px;
            text-align: center;
            margin-bottom: 50px;
            font-family: "宋体"
        }

        .pint_ul_box {
            font-size: 20px;
            font-family: "仿宋";
            width: 100%;
            height: auto;

        }

        .pint_ul_box li {
            width: 100%;
            min-height: 50px;
            max-height: auto;
            float: left;
            margin: 10px auto;

        }

        .pint_ul_box i {
            width: 22%;
            float: left;
            height: 50px;
            text-align: right;
            font-weight: 700;
        }

        .pint_ul_box b {
            width: 75%;
            float: left;
            min-height: 50px;
            height: auto;
            text-align: left;
        }
    </style>
</head>
<body>

<h3>${text(ajzProjectInfo.projectName)}</h3> <!-- 项目名称 -->
<div id="printcontent" style="display:none"></div>
<#form:form id="inputForm" model="${ajzProjectInfo}" action="${ctx}/hl_project/ajzProjectInfo/save" method="post" class="form-horizontal">
<div>

    <ul class="pint_ul_box">
        <li>
            <i>所正街道：</i>
            <b>
                <#form:select path="street" dictType="hlq_street" style="border: 0; background: transparent; -webkit-appearance: none;" disabled="true" />
            </b>
        </li>
        <li>
            <i>项目类别：</i>
            <b><#form:select path="projectType" dictType="project_type" style="border: 0; background: transparent; -webkit-appearance: none;" disabled="true" /></b>
        </li>
        <li>
            <i>联系人：</i>
                <b>
                ${ajzProjectInfo.contactPerson}
                </b>
        </li>
        <li>

            <i>联系人手机：</i>

            <b>
                ${ajzProjectInfo.contactPersonTel}
            </b>
        </li>
        <li>
            <i>地址：</i>
            <b>
                ${ajzProjectInfo.address}
            </b>
        </li>
        <li>
            <i>简介：</i>
            <b>
                ${ajzProjectInfo.explain}
            </b>
        </li>
        <li>
            <i>备注：</i>
            <b>
                ${ajzProjectInfo.remarks}
            </b>
        </li>
    </ul>
</div>
<!--endprint-->
<div class="box-footer">
    <div class="row">
        <div class="col-sm-offset-2 col-sm-10">
            <button type="button" class="btn btn-sm btn-default" id="btnCancel" onclick="js.closeCurrentTabPage()"><i
                    class="fa fa-reply-all"></i> ${text('返 回')}
            </button>
            <button type="button" class="btn btn-sm btn-default" id="" onclick="doPrint()"><i
                    class="fa fa-reply-all"></i> ${text('打 印')}
            </button>
        </div>
    </div>
</div>
</#form:form>
<% } %>
<script>
    function doPrint() {
        var bdhtml = window.document.body.innerHTML;
        var sprnstr = "<!--startprint-->"; //开始打印标识字符串有17个字符
        var eprnstr = "<!--endprint-->"; //结束打印标识字符串
        var prnhtml = bdhtml.substr(bdhtml.indexOf(sprnstr) + 17); //从开始打印标识之后的内容
        var prnhtml = prnhtml.substring(0, prnhtml.indexOf(eprnstr)); //截取开始标识和结束标识之间的内容
        window.document.body.innerHTML = prnhtml; //把需要打印的指定内容赋给body.innerHTML
        window.print(); //调用浏览器的打印功能打印指定区域
        window.document.body.innerHTML = bdhtml;//重新给页面内容赋值；
        return false;
    }
</script>

